package final2107.day04;

public class LambdaDemo02 {
    public static void main(String[] args) {
        //使用lambda实现Runnable接口
        Runnable task = ()->{
            for (int i=0;i<10;i++)
                System.out.println(i);
        };
        Thread thread = new Thread(task);
        thread.start();
    }
}
